package com.koron.plan.web.maintainplan.bean.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.koron.plan.web.common.DeleteFlag;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * (MaintainPlanDispatchBean)实体类
 *
 * @author twcao
 * @since 2021-08-27 16:22:57
 */
@Data
@ApiModel("水司维保计划-派工信息")
public class MaintainPlanDispatchBean implements Serializable, DeleteFlag {

    private static final long serialVersionUID = 737555675004253906L;

    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("维保计划主键")
    private String planId;

    @ApiModelProperty("是否外单位")
    private Integer isOut;

    @ApiModelProperty("本单位责任人账号,选择是外单位，则为跟踪负责人；若选择不是外单位，则为负责人")
    private String leader;

    @ApiModelProperty("本单位责任人名称")
    private String leaderName;

    @ApiModelProperty("外单位负责人账号")
    private String outLeader;

    @ApiModelProperty("外单位负责人名称")
    private String outLeaderName;

    @ApiModelProperty("工作负责人单位ID")
    private String deptWork;

    @ApiModelProperty("工作负责人单位名称")
    private String deptWorkName;

    @ApiModelProperty("注意事项")
    @Length(max = 256, message = "注意事项不得超过256个字符")
    private String attention;

    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

    @JsonIgnore
    @ApiModelProperty(value = "删除标志", hidden = true)
    private Boolean deleteFlag;

}
